#ifndef PBMESSAGECONVERTER_H
#define PBMESSAGECONVERTER_H
#include <cms/Message.h>
#include <google/protobuf/Message.h>
#include "IMessageConverter.h"

class PbMessageConverter : public IMessageConverter
{
public:
	PbMessageConverter(void);
	virtual ~PbMessageConverter(void);
	virtual cms::Message* toCmsMessage(void* object);
	virtual void* toObject(const cms::Message* cmsMessage);
private:
	cms::Message* toCmsMessage(const google::protobuf::Message* pbMsg);
	google::protobuf::Message* toPbMessage(const cms::Message* cmsMessage);
};
#endif